<?php
/*--------------------------------------------------------------
   newsletter_recipients_created_by_admin_column.php 2022-11-18
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2022 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
 -------------------------------------------------------------*/

/** @var DatabaseModel $this */
/** @var int $t_success */

if ($this->columnExists('newsletter_recipients', 'created_by_admin') === false) {
    
    $query = "ALTER TABLE `newsletter_recipients` ADD `created_by_admin` INT NOT NULL DEFAULT '0' AFTER `mail_status`;";
    $t_success &= $this->query($query, true);
}